using HarmonyLib;
using UnityEngine;

namespace TheWorldOfKongfuEasyMod;

/// <summary>
/// 移除糟糕的日志
/// </summary>
[HarmonyPatch(typeof(Debug))]
[HarmonyPatch("Log", [typeof(object)])]
public static class Patch_Debug_Log
{
    static bool Prefix(object message)
    {
        if (message is string str)
        {
            if (str.StartsWith("configdata.b02append") ||
                str.StartsWith("configdata.b03append") ||
                str.StartsWith("configdata.b07append")
               )
                return false;
        }

        return true;
    }
}